from Lx_web.config.Base import Base
import pytest
from selenium.webdriver.common.by import By
import time
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium import webdriver


class Page(Base):
    # 输入 '我在做软件测试'
    input_loc=(By.ID,'input')
    def input(self):
        self.send_keys(self.input_loc,'我在做软件测试')
    # 点击搜索按钮
    search_button=(By.ID,'search-button')
    def search(self):
        self.click(self.search_button)

    print(search_button)
















    def test_so(self):
        self.input()
        time.sleep(2)
        self.search()
        self.jietu()
        time.sleep(5)

